package com.lottery.utils;

public enum RegionEnum {

    KORSOU(1, "Korsou"),
    FLAMINGO(2, "Flamingo"),
    DIARIO(3, "Diario"),
    ST(4, "ST");

    private int id;
    private String name;

    RegionEnum(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public RegionEnum getValue(int id) {
        for (RegionEnum item : RegionEnum.values()) {
            if (item.getId() == id) {
                return item;
            }
        }
        return null;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
